<?php

namespace YouBaoLian\Application\Response;

use YouBaoLian\Http\Response;

class VehicleQuerySpecialResponse extends Response
{

    private $supplierId = 0;

    private $total = 0;

    private $data = [];

    public function build(): self
    {
        parent::build();

        $this->supplierId = $this->getBizContent('supplierId');
        $this->total = (int)$this->getBizContent('total');

        $this->data = $this->getBizContent('data');

        return $this;

    }

    /**
     * @return int
     */
    public function getSupplierId(): int
    {
        return $this->supplierId;
    }

    /**
     * @return int
     */
    public function getTotal(): int
    {
        return $this->total;
    }

    /**
     * @return array
     */
    public function getData(): array
    {
        return $this->data;
    }
}
